<template>
    <div :style="style" class="igma_app">
        <router-view />
    </div>
</template>

<script setup>
import {debounce, getWindowSize} from "@ut/tool.js";
import {onMounted, ref} from "vue";

const style = ref({...getWindowSize(true)});

onMounted(async () => {
    window.addEventListener('resize', debounce(() => {
        style.value = getWindowSize(true);
    }));
})
</script>

<style lang="less">
* {
    .padd(0);
    .marg(0);
}

.igma_app {
    transition: .5s;
}
</style>